/*
** WOPEN.C: Creates a window and displays some text in it.
*/

#include <pictor.h>

void main()
{
   /* initialize library */
   initvideo();
   vcolor(foreback(BOLD+WHITE,BLUE)); cls();

   /* create a window and write some text in it */
   wopen(5,6,17,70,foreback(BLACK,WHITE),WO_SHADOW);
   wputs("Hello, world. wputs() here!\n\nPress any key");

   /* wait for user to press a key */
   kbdread();
   wclose();

   /* restore screen */
   vcolor(foreback(WHITE,BLACK));
   cls();
}
